<?php

require_once 'Basic.php';

$r = new Report();

$items = array(
    10, 20, 30, 40, 50, 60, 70, 80, 90, 100
);

for($i = 1; $i < rand()%50; $i++) {
  $ri = new ReportItem("-");
  foreach($items as $k => $v) {
    $ri->addLine($k, rand()%2 == 0 ? $v*$i : null);
    for($j = 0; $j < rand()%50; $j++) {
      $ri->addLink($j*$i*$v, "http://${j}");
    }
  }
  $r->addItem($ri);
}

$p = new Page("FOO");
$p->addContent($r->getHtml());
echo $p->getHtml();